package com.hjm.project.report.report.service;

import com.hjm.project.report.report.domain.ReportMerchant;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author puyiliang
 * @date create in 2021/1/16 15:40
 */
public interface ReportMerchantService {
    /**
     * 查询商编查询
     * @param request Map
     * @return List
     */
    List<ReportMerchant> selectQueryMerchantList(Map<String, String> request);

    /**
     * 保存商编
     * @param fileUrl String
     * @param loginName String
     * @param source String
     */
    void saveUploadMerchant(String fileUrl, String loginName, String source);

    /**
     * 商编导出
     * @param loginName String
     * @param request Map
     */
    void downloadMerchant(String loginName, Map<String, String> request);

    /**
     * 后台队列任务查询
     * @return List
     * @param request Map
     */
    List<Map<String, String>> getJobTaskList(Map<String, String> request);

    /**
     * 后台文件下载
     * @param id String
     * @param response HttpServletResponse
     */
    void downloadFile(String id, HttpServletResponse response);

    /**
     * 商编更新
     * @param fileUrl String
     * @param loginName String
     */
    void saveEditMerchant(String fileUrl, String loginName);

    /**
     * 查询商编交易详情
     * @param request Map
     * @return List
     */
    List<Map<String, Object>> getTransactionDetailList(Map<String, String> request);

    /**
     * 商编交易导出任务
     * @param loginName String
     * @param request Map
     */
    void downloadTransactionDetail(String loginName, Map<String, String> request);
}
